<template>
  <div class="return_wrap">
    <div class="icon_box" @click="returnClick">
      <CIcon name="return" width="30" height="30" />
      <span class="text">返回</span>
    </div>
  </div>
</template>

<script>
import { defineComponent } from "vue";
export default defineComponent({
  name: "Return",
});
</script>
<script setup>
import CIcon from "../../../components/CIcon.vue";
import { useRouter } from "vue-router";

const router = useRouter();
const returnClick = () => {
  router.push({
    path: "/home",
  });
};
</script>

<style lang="scss" scoped>
.return_wrap {
  color: white;

  .icon_box {
    cursor: pointer;
    // border: 1px solid red;
    width: 80px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;

    .text {
      font-family: "fontShuHeiTi";
      font-size: 20px;
      letter-spacing: 3px;
    }
  }
}
</style>
